package com.eastfair.venueservice.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.venueservice.entity.ServiceBorrowReturn;
import com.eastfair.venueservice.vo.ServiceBorrowReturnVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * Mapper 接口
 * 借用归还记录
 * </p>
 *
 * @author linan
 * @date 2022-09-19
 */
@Repository
public interface ServiceBorrowReturnMapper extends SuperMapper<ServiceBorrowReturn> {

    /**
     * 分页查询借还记录列表.
     *
     * @param pageParams   the page params
     * @param queryWrapper the query wrapper
     * @return the page
     */
    Page<ServiceBorrowReturnVO> listServiceBorrowReturnVOs(Page<ServiceBorrowReturn> pageParams,
                                                           @Param(Constants.WRAPPER) QueryWrapper<ServiceBorrowReturn> queryWrapper);
}
